<?php

namespace frontend\controllers;

/**
 * @author  shuang
 * @date    2016-10-26 14:13:22
 * @version V1.0
 * @desc    
 */
use frontend\models\WB_Article;
use Yii;
use common\components\WController;

class ArticleController extends WController {
    /* 帮助中心 */

    public function actionHelp() {
        $res = WB_Article::getArticleList();
        return $this->render("help", $res);
    }

    /*
     * 内容详情
     */

    public function actionHelpshow() {
        $id = Yii::$app->request->get("id");
        $data = WB_Article::findOne($id);
        return $this->render("helpshow",["data"=>$data]);
    }

}
